-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: support sharding component hscale to rerender #8821
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8821 +/- ##
==========================================
- Coverage 60.34% 60.26% -0.09%
==========================================
Files 381 381
Lines 46215 46244 +29
==========================================
- Hits 27889 27868 -21
- Misses 15654 15701 +47
- Partials 2672 2675 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -207,12 +207,13 @@ type ComponentConfigSpec struct { | |||
|
|||
// RerenderResourceType defines the resource requirements for a component. | |||
// +enum | |||
// +kubebuilder:validation:Enum={vscale,hscale,tls} | |||
// +kubebuilder:validation:Enum={vscale,hscale,tls,shardingHScale} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about supporting shardingVScale together?
return nil | ||
} | ||
|
||
clusterCompName := component.Labels[constant.KBAppShardingNameLabelKey] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename clusterCompName -> shardingName would be better
return nil | ||
} | ||
|
||
for i, comp := range cluster.Spec.Shardings { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto, rename comp -> sharding
No description provided.